package com.command;

import com.command.command.LightOffCommand;
import com.command.command.LightOnCommand;

/**
 * command pattern
 *
 * usage: queue log
 */
public class Run {
    public static void main(String[] args) {
        RemoteControl remoteControl = new RemoteControl();
        Light light = new Light("kepler light");
        LightOnCommand lightOnCommand = new LightOnCommand(light);
        LightOffCommand lightOffCommand = new LightOffCommand(light);

        remoteControl.setCommand(0, lightOnCommand, lightOffCommand);
        remoteControl.offButtonWasPushed(0);
        remoteControl.onButtonWasPushed(0);
    }
}
